package com.atguigu.spzx.order.service;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.order.OrderInfo;
import com.atguigu.spyx.model.dto.h5.OrderInfoDto;
import com.atguigu.spyx.model.vo.h5.OrderInfoVo;
import com.github.pagehelper.PageInfo;

/**
 * @author LT
 * @create 2023-11-21-19:54
 */
public interface OrderInfoService {
    OrderInfoVo trade();

    Long submitOrder(OrderInfoDto orderInfoDto);

    OrderInfo findOrderById(Long orderId);

    PageInfo<OrderInfo> orderPage(Integer pageNum, Integer pageSize, Integer orderStatus);

    OrderInfoVo buy(Long skuId);

    OrderInfo findOrderByNo(Long orderNo);

    void updatePayStatus(Long orderNo, Long payType, Long payStatus);


}
